package com.czk.gulimall.product.dao;

import com.czk.gulimall.product.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czk.gulimall.product.vo.SkuItemVo;
import com.czk.gulimall.product.vo.SpuItemAttrGroupVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 * 
 * @author chenzhangkun
 * @email 1052031630@qq.com
 * @date 2021-12-07 21:29:05
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {
    /**
     *
     * @param spuId
     * @param categoryId
     * @return
     */
    List<SpuItemAttrGroupVo> getAttrGroupWithAttrBySpuIdAndCategoryId(@Param("spuId") Long spuId, @Param("categoryId") Long categoryId);
}
